package xyz.lwm.lazycat.web.route;

import xyz.lwm.lazycat.web.handle.Handler;
import xyz.lwm.lazycat.web.handle.HandlerType;

/**
 * 标准化路由, 请求路径固定
 *
 * @author lwm
 */
class StandardRoute extends AbstractRoute {

    public StandardRoute(String path, HandlerType type, Handler handler) {
        super(path, type, handler);
    }

    @Override
    public String getKey() {
        return getPath();
    }

    @Override
    public boolean matches(String path) {
        return getPath().equals(path);
    }

}
